package distanciaedicion;

public class Distancia {
	private char caracterFuente;
	private char caracterDestino;
	private Integer sentidoVertical;
	private Integer sentidoHorizontal;
	private Integer costoActual;
	private Operacion operacion;
	
	public Distancia() {
		caracterFuente = ' ';
		caracterDestino = ' ';
		setSentidoVertical(1);
		setSentidoHorizontal(1);
		operacion = null;
	} 
	
	public Distancia(Operacion operacion) {
		caracterFuente = ' ';
		caracterDestino = ' ';
		this.operacion = operacion;
		setSentidoVertical(operacion.getSentidoVertical());
	}

	public Integer getCostoActual() {
		return costoActual;
	}
	
	public char getCaracterFuente() {
		return caracterFuente;
	}
	public char getCaracterDestino() {
		return caracterDestino;
	}
	public Operacion getOperacion() {
		return operacion;
	}
	
	public Integer getCosto() {
		return operacion.getCosto();
	}
	
	public void setCostoActual(Integer costo) {
		costoActual = costo;
	}
	
	public void setCaracterFuente(char caracterFuente) {
		this.caracterFuente = caracterFuente;
		operacion.setCaracterFuente(caracterFuente);
	}
	public void setCaracterDestino(char caracterDestino) {
		this.caracterDestino = caracterDestino;
		operacion.setCaracterDestino(caracterDestino);
	}

	public Integer getSentidoVertical() {
		return sentidoVertical;
	}

	public void setSentidoVertical(Integer sentidoVertical) {
		this.sentidoVertical = sentidoVertical;
	}

	public Integer getSentidoHorizontal() {
		return sentidoHorizontal;
	}

	public void setSentidoHorizontal(Integer sentidoHorizontal) {
		this.sentidoHorizontal = sentidoHorizontal;
	}
}
